<template>
<el-form-item label="行业">
    <el-checkbox-group v-model="SystemName" size="mini">
        <el-checkbox v-for="item in System" :key="item.pvCode" :label="item.pvCode">{{ item.propertyValue }}</el-checkbox>
    </el-checkbox-group>
</el-form-item>
</template>

<script>
export default {
    porps:{
        
    },
    components: {},
    data: () => ({
        System: [],
        SystemName: [],
    }),
    computed: {
        propertyTypeName(){
            return this.System[0].propertyTypeName
        }
    },
    created() {
        this.propertyType()
    },
    methods: {
        propertyType() {
            this.$common
                .selectPage({
                    ptCode: "P12",
                    pageNumber: 1,
                    pageSize: 3,
                })
                .then((res) => {
                    if (res.errorCode === "00000") {
                        this.System = res.data.list;
                        this.SystemName = [localStorage.getItem("SYS_TYPE")];
                    }
                });
        },
    },
    watch: {
        SystemName: {
            handler() {
                this.$emit('on-change', this.SystemName)
            },
            deep: true
        }
    },
};
</script>

<style></style>
